package org.seedltd.upms.model.sys.form;

import com.baomidou.mybatisplus.annotation.OrderBy;
import lombok.Getter;
import lombok.Setter;
import org.seedltd.core.base.BaseSearchForm;
import org.seedltd.base.annotation.Like;
import org.seedltd.base.annotation.LikeType;
import org.seedltd.base.annotation.SqlSegment;

import java.util.Date;

/**
 * 菜单列表搜索条件
 * 
 * @author laizuan
 * @since 2021/05/24
 */
@Getter
@Setter
public class SysMenuSearchForm extends BaseSearchForm {
    /**
     * 菜单名称
     */
    @Like(likeType = LikeType.right)
    private String menuName;

    /**
     * 父级菜单主键
     */
    @SqlSegment
    private Long parentId;

    @OrderBy(sort = 1)
    private Integer sortNo;

    @OrderBy
    private Date createTime;
}
